package com.wgts.wgts.dagger.module;

import com.wgts.wgts.dagger.scope.ActivityScope;
import com.wgts.wgts.dagger.scope.FragmentScope;
import com.wgts.wgts.mvp.model.IHomePageTimeActionFragmentModel;
import com.wgts.wgts.mvp.model.imp.HomePageTimeActionFragmentModel;
import com.wgts.wgts.mvp.presenter.IHomePageContentFragmentPersenter;
import com.wgts.wgts.mvp.presenter.IHomePageTimeActionFragmentPresenter;
import com.wgts.wgts.mvp.presenter.imp.HomePageContentFragmentPersenter;
import com.wgts.wgts.mvp.presenter.imp.HomePageTimeActionFragmentPresenter;
import com.wgts.wgts.mvp.view.IHomePageTimeActionFragmentView;
import com.wgts.wgts.netmodle.NetService;

import dagger.Module;
import dagger.Provides;

@Module
public class HomePageTimeActionFragmentModule {

    private IHomePageTimeActionFragmentView view;

    public HomePageTimeActionFragmentModule(IHomePageTimeActionFragmentView view) {
        this.view = view;
    }

    @Provides
    @FragmentScope
    public IHomePageTimeActionFragmentView provideView(){
        return view;
    }

    @Provides
    @FragmentScope
    public IHomePageTimeActionFragmentModel provideModel(NetService netService){
        return new HomePageTimeActionFragmentModel(netService);
    }

    @Provides
    @FragmentScope
    public IHomePageTimeActionFragmentPresenter providePersenter(IHomePageTimeActionFragmentView view, IHomePageTimeActionFragmentModel model){
        return new HomePageTimeActionFragmentPresenter(view, model);
    }
}
